Function Reference

WinExists

Checks to see if a specified window exists.

WinExists ( "title" [, "text"] )

 

Parameters

title The title of the window to check. See Title special definition.
text [optional] The text of the window to check.

 

Return Value

Success: Returns 1 if the window exists.
Failure: Returns 0 otherwise.

 

Remarks

WinExists will return 1 even if the window is hidden.

 

Related

WinActive, WinWait, WinWaitActive, WinWaitClose, WinWaitNotActive, WinTitleMatchMode (Option)

 

Example


If WinExists("Untitled -") Then
    MsgBox(0, "", "Window exists")
EndIf